home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NOVA - For the NeXT Workstation
/
NOVA - For the NeXT Workstation.iso
/
Apps
/
Graphics
/
Others
/
BitmapTest
/
MovingBitmap.h
< prev
next >
Wrap
Text File
|
1992-12-25
|
961b
|
31 lines
/***************************************************************************/
/* MovingBitmap.h - interface file for MovingBitmap class */
/* January 1990 Carl F. Sutter */
/***************************************************************************/
#import <objc/Object.h>
#import <appkit/NXImage.h>
@interface MovingBitmap:Object
{
id bmpPiece; // bitmap to hold image of piece
float flXPos, flYPos; // next postion of piece
float flOldXPos, flOldYPos; // last piece position for erasing
float flXVel, flYVel; // velocity vector of bitmap in units/move
NXRect nxrLimits; // limits of frame that this bitmap exists in
NXSize nxsPiece; // size of bitmap
}
/* factory method */
- initFromMachO:(const char *)tiffFile inFrame:(NXRect *)limits;
/* actions */
- setFrame:(NXRect *)nxrFrame;
- setPosition:(float)xPos :(float)yPos;
- setVelocity:(float)xVel :(float)yVel;
- move;
- erase;
- draw;
@end